home *** CD-ROM | disk | FTP | other *** search
- /*
- ------------------------------------------------------------------------------
- | Sun Microsystems, TOPS Division
- | 950 Marina Village Parkway
- | P.O. Box 4016
- | Alameda, CA 94501
- |
- | Copyright (c) 1989 Sun Microsystems, Inc. All rights reserved.
- |
- | Sun considers its source code as an unpublished, proprietary trade secret,
- | and it is available only under strict license provisions. This copyright
- | notice is placed here only to protect Sun in the event the source is deemed
- | a published work. Disassembly, decompilation, or other means of reducing the
- | object code to human readable form is prohibited by the license agreement
- | under which this code is provided to the user or company in possession of
- | this copy.
- |
- | RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government
- | is subject to restrictions as set forth in subparagraph (c) (1) (ii) of the
- | Rights in Technical Data and Computer Software clause at DFARS 52.227-7013
- | and in similar clauses in the FAR and NASA FAR supplement.
- ------------------------------------------------------------------------------
- */
-
-
-
- /*
- ================================================================================
- **
- ** Project: SoftTalk
- **
- ** File: STServer.h
- **
- ** Purpose:
- ** Provide the interface to the sample SoftTalk server. Call the routines
- ** STServerCreate(), STServerDispose(), and STServerTrigger() from the outside.
- ** Func1() thru Func5() are the routines that the server exports and can be called
- ** from clients.
- **
- ** ----------------------------------------------------------------------------
- **
- ** Version Date Author Description
- ** ------- ---- ------ -----------
- ** 1.0.2 30-Aug-89 MAC Second draft. Added Func6, SampleStruct.
- ** 1.0.1 17-Aug-89 MAC First draft.
- **
- ================================================================================
- */
-
- #ifndef __STServer__
- #define __STServer__
-
-
- /*
- ** ----------------------------------------------------------------------------
- ** INCLUDES
- ** ----------------------------------------------------------------------------
- */
- #include "StdHdr.h"
- #include <MacTypes.h>
-
-
- /*
- ** ----------------------------------------------------------------------------
- ** TYPES
- ** ----------------------------------------------------------------------------
- */
- typedef struct {
- INT32 foo;
- INT16 fi;
- INT32 fo;
- INT32 fum;
- INT16 hello;
- INT16 again;
- } SampleStruct;
-
-
-
- /*
- ** ----------------------------------------------------------------------------
- ** PROTOTYPES
- ** ----------------------------------------------------------------------------
- */
- void STServerCreate(void);
- void STServerDispose(void);
- void STServerTrigger(void);
-
- INT32 Func1(void);
- INT32 Func2(INT32 arg1);
- INT32 Func3(INT32 arg1, INT16 arg2);
- INT32 Func4(char* cStr);
- INT32 Func5(Str255 pStr);
- INT32 Func6(SampleStruct* pStruct);
-
-
-
- #endif